import java.util.Scanner;

public class 运费 {
    public static void main(String[]args){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入网购金额：");
        double i =scanner.nextDouble();
        System.out.println("请输入距离：");
        double d = scanner.nextDouble();
        if (0<d&&d<=10){
            System.out.println("总金额为：" + (i+10));
        }else if(11<=d && d<=50){
            System.out.println("总金额为："+(i+50));
        }else if(51<=d && d<=100){
            System.out.println("总金额为"+(i+100));
        }else if(100<=d){
            System.out.println("总金额为："+(i+200));
        }
    }
}
